import { Component, OnInit } from '@angular/core';


import * as $ from 'jquery';
import Swiper from 'swiper';
import citypickerhc from '../../../assets/js/citypickerhc.js';
import LAreaData from '../../../assets/js/LAreaData1.js';
@Component({
  selector: 'app-mall-class',
  templateUrl: './mall-class.component.html',
  styleUrls: ['./mall-class.component.scss']
})
export class MallClassComponent implements OnInit {

  constructor() { }

  ngOnInit(): void {

    $(function () {
      $('.remeng_We ol .gd a').mousedown(function () {
        var Is_show = $('.remeng_We ol div').attr('is_show');
        if (Is_show == 'no') {
          $('.remeng_We ol div').show();
          $('.remeng_We ol .gd a').text('收起');
          $('.remeng_We ol div').attr('is_show', "yes");
        } else {
          $('.remeng_We ol div').hide();
          $('.remeng_We ol .gd a').text('更多');
          $('.remeng_We ol div').attr('is_show', "no");
        }
      })
    })
    var swiper = new Swiper('.swiper_container_rem', {
      slidesPerView: 3,
      spaceBetween: 20,
      //   centeredSlides: true,
      //   pagination: {
      //     el: '.swiper-pagination',
      //     clickable: true,
      //   },
    });




    // 首页
    // 搜索显示隐藏
    $(function () {
      $("#input1").mousedown(
        function () {
          $(".search_bomb_box").show()
          $("#waik").hide()
        }
      )
      $(".search_bomb_box .search_top>a").mousedown(
        function () {
          $(".search_bomb_box").hide()
          $("#waik").show()
        }
      )
    })
    // 选择城市
    $("#citypick").click(function () {
      citypickerhc.citypicker(LAreaData.LAreaData, $);
    });
  }

}
